﻿using System;

namespace CompareFloatingPoint
{
    class CompareFloatingPoint
    {
        static void Main()
        {
            Console.Write("Enter first value: ");
            decimal a = decimal.Parse(Console.ReadLine());
            Console.Write("Enter second value: ");
            decimal b = decimal.Parse(Console.ReadLine());

            a = Math.Round(a, 6);
            b = Math.Round(b, 6);

            
            Console.WriteLine("Enetred numbers are: {0}", a == b ? "equal" : "not equal");
        }
    }
}
